package com.water.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: city_water
 * @description:
 * @author: lydms
 * @create: 2024-05-11 20:59
 **/

@Data
public class WaterUsageVo implements Serializable {

    /**
     * 水表使用量id
     */
    private Long usageId;
//    private Long userId;
    private Long meterId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime readingDate;
    /**
     * 之前读数
     */
    private Float previousReading;
    /**
     * 最近读数
     */
    private Float currentReading;
    /**
     * 消费量
     */
    private Float consumption;
}
